package com.blog.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/diary")
public class DiaryController{
	
	@RequestMapping("/home")
	public ModelAndView home(){
		ModelAndView modelAndView = new ModelAndView();
		
		modelAndView.setViewName("/diary/bologTheme");
		
		return modelAndView;
	}
	
	@RequestMapping("/list")
	public ModelAndView list(){
		ModelAndView modelAndView = new ModelAndView();
		
		modelAndView.setViewName("/diary/journey");
		
		return modelAndView;
	}
	
	@RequestMapping("/list/frame")
	public ModelAndView _list_frame(){
		ModelAndView modelAndView = new ModelAndView();
		
		modelAndView.setViewName("/diary/journeyframe");
		
		return modelAndView;
	}
	
	@RequestMapping("/photo")
	public ModelAndView photo(){
		ModelAndView modelAndView = new ModelAndView();
		
		modelAndView.setViewName("/diary/photoFamily");
		
		return modelAndView;
	}
	
	@RequestMapping("/personnel")
	public ModelAndView personel(){
		ModelAndView modelAndView = new ModelAndView();
		
		modelAndView.setViewName("/diary/personnel_introduce");
		
		return modelAndView;
	}
	
}
